package com.aricksm.xuan.activity01;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

/**
 * Created by xuan on 16/6/15.
 */
public class NewsListView extends Activity {

    TextView textLog;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.news_list);

        Bundle bundle = getIntent().getBundleExtra("bundle");
        int id = bundle.getInt("id");
        String title = bundle.getString("title");

        textLog = (TextView) findViewById(R.id.textLog2);
        textLog.setText("id:"+id+",title:"+title);



    }
}
